#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
int main()
{
	int x = 1, y = 1, z = 0;

	int n;
	int flag = 1;
	scanf("%d", &n);
	for (x = 1; x <= 9; x++)
	{
		for (y = 1; y <= 9; y++)
		{
			for (z = 0; z <= 9; z++)
			{
				if (x * 100 + y * 110 + z * 12 == n)
				{
					printf("%4d%4d%4d", x, y, z);
					flag = 0;
				}
			}
		}
	}

	if (flag)
		printf("No Answer");
	return 0;
}